package _designPatterm.原型模式;

public class Client {
    public static void main(String[] args) throws CloneNotSupportedException {
        System.out.println("原型模式创建完毕");
        Sheep sheep = new Sheep("tom", 1, "白色", "青青草原 ");
        Sheep sheep2 = (Sheep) sheep.clone();
        Sheep sheep3 = (Sheep) sheep.clone();
        Sheep sheep4 = (Sheep) sheep.clone();
        Sheep sheep5 = (Sheep) sheep.clone();
        System.out.println(sheep);
        System.out.println(sheep2);
        System.out.println(sheep3);
        System.out.println(sheep4);
        System.out.println(sheep5);
        //

    }
}
